package com.xunyin.modules.storeroom.service;

import com.xunyin.common.service.BaseService;
import com.xunyin.modules.shareorder.service.dto.ShareCountDto;
import com.xunyin.modules.storeroom.domain.TStoreRoom;
import com.xunyin.modules.storeroom.param.TStoreRoomQueryParam;
import com.xunyin.modules.storeroom.service.dto.TStoreRoomQueryCriteria;
import com.xunyin.modules.storeroom.vo.TStoreRoomVo;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * @author admin
 * @date 2022-09-19
 */
public interface TStoreRoomService extends BaseService<TStoreRoom> {

    TStoreRoomVo getInfoTeaChild(Integer id);

    /**
     * 查询数据分页
     *
     * @param criteria 条件
     * @param pageable 分页参数
     * @return Map<String, Object>
     */
    Map<String, Object> queryAll(TStoreRoomQueryCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     *
     * @param criteria 条件参数
     * @return List<TStore>
     */
    List<TStoreRoom> queryAll(TStoreRoomQueryCriteria criteria);

    /**
     * 获取房间列表
     *
     * @return List<TStoreRoomVo>
     */
    List<TStoreRoomVo> listRoom(TStoreRoomQueryParam queryParam);

    List<ShareCountDto> findRoomName();
}
